package com.dcloud.manage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dcloud.manage.request.CollectSourceAddRequest;
import com.dcloud.manage.request.CollectSourceRequest;
import com.dcloud.manage.service.entity.CollectSource;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dcloud.manage.service.entity.DBInfoEntity;
import com.dcloud.manage.vo.CollectSourceVO;
import com.dcloud.manage.vo.SourceTestConnVO;

import java.util.List;

/**
 * @Description: 数据源表
 * @Author: jeecg-boot
 * @Date:   2022-09-07
 * @Version: V1.0
 */
public interface ICollectSourceService extends IService<CollectSource> {

    DBInfoEntity queryDbInfoBySourceTid(Integer sourceId);

    IPage<CollectSourceVO> queryByPage(CollectSourceRequest collectSourceRequest);

    void saveNew(CollectSourceAddRequest collectSourceAddRequest);


    List<CollectSourceVO> queryListByReq(CollectSourceRequest collectSourceRequest);

    CollectSourceVO queryInfoById(String id);

    void deleteById(String id);
}
